package org.leopard.demo.service;

import java.rmi.RemoteException;
import org.leopard.rpc.Consumer;
import org.leopard.rpc.rmi.RMIConsumer;

/**
 * @author IBM CHEN ZHI KAN
 * @create 2018/8/13
 */
public class Client {


  public static void main(String[] args) throws RemoteException {
    Consumer<UserService> consumer=new RMIConsumer();
    UserService userService=consumer.lookupService();
    User user=userService.getUser("1");
    System.out.println(user);
  }
}
